import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ${USER}
 * Date: ${YEAR}-${MONTH}-${DAY}
 * Time: ${TIME}
 */
public class Main {
    public static void main(String[] args) throws CloneNotSupportedException{
        student student1 = new student("张三", 18);
        student student2 = new student("龙池", 20);
        student student3 = new student("王五", 33);
//        student[] s = new student[3];
//        s[0] = student1;
//        s[1] = student2;
//        s[2] = student3;
//        AgeComparator ageComparator = new AgeComparator();
//        Arrays.sort(s, ageComparator);
//        System.out.println(Arrays.toString(s));
        student student4 = (student)student1.clone();
        student4.m.money = 2;
        System.out.println(student1);
        System.out.println(student4);

    }
}